//
//  HeaderCell.m
//  test1
//
//  Created by chen on 16/11/3.
//  Copyright © 2016年 chen. All rights reserved.
//

#import "HeaderCell.h"
#import "Masonry.h"

@implementation HeaderCell


-(instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}

-(void)setupUI {
    
    UIView *v = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 105)];
    [self addSubview:v];
    
    for (NSInteger index = 0; index < 4; index++) {
        UIButton *button = [[UIButton alloc]init];
        button.backgroundColor = [UIColor redColor];
        [self addSubview:button];
        
        [button mas_makeConstraints:^(MASConstraintMaker *make) {
            
        }];
//        NSString *text = index == 0?@"全类型":(index == 1?@"全时段":@"全价位");
//        [button setTitle:text forState:UIControlStateNormal];
//        
//        button.titleLabel.font = [UIFont systemFontOfSize:15];
//        //设置tag
//        button.tag = index + 1;
//        [button addTarget:self action:@selector(clickBtn:) forControlEvents:UIControlEventTouchUpInside];
    }

    
    
}


//- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
//    [super setSelected:selected animated:animated];
//
//    // Configure the view for the selected state
//}

@end
